package service.impl;

import dao.UserDao;
import dao.impl.UserDaoImpl;
import pojo.User;
import service.UserService;

import java.io.IOException;
import java.util.List;

public class UserServiceImpl  implements UserService {
    @Override
    public List<User> findAll() {
        //TODO
        UserDao userDao = new UserDaoImpl();
        List<User> users = null;
        try {
            users = userDao.findAll();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
        return users;
    }
}
